{{# layui.each(d, function(index, item){ }}
{{# if(item.type == 'text'){ }}
<div class="layui-inline">
    <label class="layui-form-label">{{item.title}}</label>
    <div class="layui-input-inline">
        <input ul-name="select" type="text" name="{{item.name}}" class="layui-input">
    </div>
</div>
{{# }else if(item.type == 'select'){ }}
<div class="layui-inline">
    <label class="layui-form-label">{{item.title}}</label>
    <div class="layui-input-inline">
        <select ul-name="select" name="{{item.name}}">
            <option value=""></option>
            {{# layui.each(item.value, function(value_index, value_item){ }}
            {{# if(item.default == value_item.key){ }}
            <option selected value="{{value_item.key}}">{{value_item.value}}</option>
            {{# }else{ }}
            <option value="{{value_item.key}}">{{value_item.value}}</option>
            {{# } }}
            {{# }); }}
        </select>
    </div>
</div>
{{# }else if(item.type == 'time'){ }}
<div class="layui-inline">
    <label class="layui-form-label">{{item.title}}</label>
    <div class="layui-input-inline">
        <input ul-type-name="time" ul-name="select" type="text" name="{{item.name}}" class="layui-input">
    </div>
</div>
{{#  } }}

{{#  }); }}